[BF-025] 性能预算和 bundle guard - #84
Merged
Merged
Conversation
Deploying byteflow with
|
| Latest commit: |
ac696ba
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://1180d25d.byteflow-c58.pages.dev |
| Branch Preview URL: | https://perf-bf-025-performance-budg.byteflow-c58.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue
Closes #45
Scope
Implementation
scripts/gates/check-performance-budget.jswith config validation and build-output report modes.scripts/gates/performance-budgets.jsonwith baseline budgets for/,/en,/en/all-tools,/en/json-formatter,/en/markdown-preview, and/en/image-resizer.npm run check:performance-budgetintonpm run validate.npm run check:performance-budget:reportintonpm run build:postso CI prints and enforces the bundle summary after export.docs/performance/performance-budget.mdand guard tests for CI wiring.Validation
check:performance-budgetcheck:performance-budget:reportpassed inbuild:postnpm run test:e2e:smoke -- --port=4179.next/analyze/client.html,.next/analyze/nodejs.html,.next/analyze/edge.htmlBundle Budget Evidence
npm run check:performance-budget:reportoutput from the successful build:Acceptance Criteria
npm run validate和npm run build通过。Manual Checks
out/HTML and_next/staticassets.Privacy Check
Screenshots / Evidence